package cn.bdqn.petadoptions.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @ProjectName: Petadoptions
 * @Package: cn.bdqn.config
 * @ClassName: MybatisPlusConfig
 * @Author: haha  86130
 * @Description: MyBatisPlus配置类
 * @Date: 2021/8/25 9:20
 * @Version: 1.0
 */
@Configuration
@MapperScan("cn.bdqn.mapper")
public class MybatisPlusConfig {

    /**
     * 分页插件
     * @return 分页插件的实例
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }
}
